package com.jcl.core.db.page;

import com.jcl.core.common.page.PageResult;
import com.jcl.core.db.page.model.PageCondition;
import com.jcl.core.db.page.model.PageTotal;

import java.util.List;
import java.util.Map;

/**
 * @ClassName DistributePageTotal
 * @Author yyliu
 * @Date 2018/12/25 10:00
 * @Version 1.0
 **/
public interface DistributePageTotal<T> {

    PageTotal pageTotal(PageCondition condition);

    PageResult pageResult(PageCondition condition, Map<String, Integer[]> everyServerCurPageCount);

    List<T> comparator(List<T> data);
}
